package com.hyz.controller.assetManager;

import com.hyz.service.assetManager.AssetManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.assetManager.AssetInboundStatusResponse;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/29 22:11
 */
@RestController
@RequestMapping("/log")
public class AssetManagerController {
    @Autowired
    private AssetManagerService assetManagerService;

    @PostMapping("/getAssetInboundStatus")
    public List<AssetInboundStatusResponse> getAssetInboundStatus(@RequestBody Long assetManagerId) {
        return assetManagerService.getAssetInboundStatus(assetManagerId);
    }
}
